package com.example.charset;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class CharSetDemo1 {
    public static void main(String[] args) throws IOException {
        /**
         * 字节流读取中文会出现乱码
         */

        FileInputStream fis = new FileInputStream("src/com/example/file/c.txt");

        int read = fis.read();
        System.out.println((char) read);

        fis.close();


    }
}
